<{include file="public/header.html"}>

<div class="container">
     	<div class="signup">
             <div class="signup-title"><span>Your garage</span></div>
             <div class="garage-list">
				<table border="1" cellpadding="0" cellspacing="0" width="100%" bgcolor="#d4ffd4">
					<tr class="title">	
						<td>Title</td>
						<td>Category</td>
						<td width="300">Place</td>
						<td width="100">Price/m2</td>
						<td width="100">Price/meter</td>
						<td width="100">Price/spot</td>
						<td>Function</td>
					</tr>
					<{while $garage->fetch()}>
					<tr>	
						<td><span><a href="<{$smarty.const.APPLICATION_URL}>/garage/update/id/<{$garage->id}>"><b><{$garage->title}></b></a></span></td>
						<td><span><{$garage->category_name}></span></td>
						<td><span><{$garage->address}></span></td>
						<td><span><{$garage->m2}></span></td>
						<td><span><{$garage->meter}></span></td>
						<td><span class="last"><{$garage->spot}></span></td>
						<td>
							<a href="<{$smarty.const.APPLICATION_URL}>/garage/image/action/add/id/<{$garage->id}>" title="add image" >
								<img border=0 alt="edit_small.png" src="<{$smarty.const.STATIC_COMPONENT_URL}>images/search_small.png"/>						
							</a>
							<a href="<{$smarty.const.APPLICATION_URL}>/garage/update/id/<{$garage->id}>" title="edit garage" >
								<img border=0 alt="edit_small.png" src="<{$smarty.const.STATIC_COMPONENT_URL}>images/edit_small.png"/>						
							</a>								
							<a onclick="return confirm('<{#_LB_DELETE_CONFIRM#}>')" href="<{$smarty.const.APPLICATION_URL}>/garage/index/action/delete/id/<{$garage->id}>" title="delete garage" >
								<img border=0 alt="delete_small.png" src="<{$smarty.const.STATIC_COMPONENT_URL}>images/delete_small.png"/>						
							</a>
						</td>
					</tr>
					<{/while}>
				</table>
				<div class="row pagination" align="right">
					<{include file='pager.html' data=$garage->getPaginationData() url_base=$url_base}>
				</div>
				<div class="row" align="right">
					<a href="<{$smarty.const.APPLICATION_URL}>/garage/add"><img src="<{$smarty.const.STATIC_COMPONENT_URL}>images/btnAddGarage.jpg" /></a>
				</div>
             </div>
         </div>
    </div><!--end container-->
    <div class="clear"></div>
<{include file="public/footer.html"}>